<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
	
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	<meta name="keywords" content="ironman, triathlon, norway">
	<meta name="description" content="Ironman.no is a database over all norwegian ironman results.">
	<meta name="viewport" content="width=820" />
	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
	
	<link rel="shortcut icon" href="/img/design07/favicon.ico" type="image/x-icon" />
	
	<style type="text/css" media="screen">
		@import url( <?php bloginfo('stylesheet_url'); ?> );
	</style>

	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
	
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/prototype.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/scriptaculous.js?load=effects"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/lightbox.js"></script>
	
	
	<?php //include (TEMPLATEPATH . '/element_post.php'); ?>

	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<?php wp_get_archives('type=monthly&format=link'); ?>
	<?php //comments_popup_script(); // off by default ?>
	<?php wp_head(); ?>
</head>

<body id="<?php echo the_post_id(); ?>">
<div id="extended_header">
<div id="header">
<a href="<?php bloginfo('url'); ?>/"><h1 id="logo"><?php bloginfo('name'); ?></h1></a>

</div><!-- End header -->

<div id="menu">
<ul>
<?php wp_list_pages(array('title_li'=>'')); ?>
<li class="<?php if(!is_page()) echo "current_page_item";?>"><a href="<?php bloginfo('url'); ?>/blog/">Blog</a></li>
</ul>
</div><!-- End menu -->
</div><!-- End extended_header -->

<div id="banner" class="content">
<div class="page">
<?php if(is_page() ): ?>
<?php the_post(); $page = get_page(get_the_ID()); $full_page = get_extended($page->post_content);
?>

<h1 class="hidden"><?php echo $page->post_title; ?></h1>
<div class="body body-main"><?php echo $full_page["main"]; ?></div>
<?php else: ?>
<h1>Journal over utlagte resultater</h1>
<p class="large"><?php bloginfo('description'); ?></p>
<?php endif; ?>
</div>
</div><!-- end banner -->
<div id="content_wrap">
<div id="primary" class="content <?php if( !SIDEBAR ) echo 'extended'; ?>">
<?php if(is_page() ): ?>
<div class="body body-extended"><?php echo $full_page["extended"]; ?></div>
<?php endif; ?>